<template>
  <!-- 商城首页搜索框 -->
  <div class="text">
    <span><img :src="photo" alt="" class="header" /></span>
    <van-search v-model="value" placeholder="搜索宠物商品" to="/search" />
    <span><img :src="can" alt="" class="header-1" /></span>
    <span class="sign">签到</span>
  </div>
</template>

<script>
export default {
  data() {
    return {
      photo: "http://81.68.133.139:3000/images/store/dogheart.png",
      can: "http://81.68.133.139:3000/images/store/can.png",
      value: "",
    };
  },
};
</script>

<style lang="less">
/* 顶部搜索框主样式 */
.text {
  width: 100%;
  font-size: 12px;
  display: flex;
  background-color: #fff;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  padding: 10px 10px 0px 10px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}
.van-search {
  width: 70%;
}
/* 顶部头像和签到样式 */
.header {
  width: 30px;
  height: 30px;
}
.header-1 {
  width: 25px;
  height: 25px;
}
.sign {
  font-size: 16px;
  font-weight: 600;
  margin-left: 3px;
}
</style>
